//
// Created by 陈奕锟 on 2023/7/31.
//

#include "compiler.h"
int compile_file(const char* filename, const char* out_filename, int flags)
{
	struct compile_process* process = compile_process_create(filename, out_filename, flags);
	if (!process)
		return COMPILER_FAILED_WITH_ERRORS;
	
	// Preform lexical analysis
	
	// Perform parsing
	
	// Perform code generation
	
	return COMPILER_FILE_COMPILED_OK;
}
